home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ BSOD 2.xpl < prev    next >
Text File  |  1999-08-25  |  2KB  |  70 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="8"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Misc\BSOD"
  5. "NAME"="Back Color"
  6. "VERSION"="1.10"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Set Color"
  9. "TEXT 2"="Reset Color"
  10. "DESCRIPTION 1"="This plug-in allows you to change the color of the background displayed on BSOD [Blue Screen of Death] error messages in Windows 95/98/98 Second Edition computers."
  11. "DESCRIPTION 2"="The default colors are "Blue" for background and "Bright White" for text color."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15. "COMMENT 2"="Thanks to AXCEL216@aol.com for the detailed information - please see http://members.aol.com/axcel216/ for lots of other great tips and tricks and write to AXCEL216@aol.com for more information."
  16.  
  17.  
  18. sFile="SYSTEM.INI"
  19. sSect="386enh"
  20. sVal_Text="MessageTextColor"
  21. sVal_Back="MessageBackColor"
  22. sCOL_NR=""
  23. sCOL_TX=""
  24. Sub Plugin_Initialize 
  25.  If GetWinVer=1 or GetWinVer=3 or GetWinVer=4 then
  26.    
  27.     sCOL_NR=Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F")
  28.     sCOL_TX=Array("Black","Blue","Green","Cyan","Red","Magenta","Yellow/Brown","White","Gray","Bright Blue","Bright Green","Bright Cyan","Bright Red","Bright Magenta","Bright Yellow","Bright White")
  29.  
  30.     For i=0 to UBound(sCOL_TX)
  31.         Call SetUIElement(i+1,sCOL_TX(i))
  32.     Next
  33.  
  34.  else
  35.     Disable
  36.  end if
  37.     
  38. End Sub
  39.  
  40. Sub Plugin_CheckData(ElementIndex)
  41. End Sub
  42.  
  43. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  44.  If ElementIndex=1 then 'Set Color
  45.     if ElementSubIndex=0 then 
  46.        Call MsgWarning("No item selected - please select an item first.")
  47.        Exit Sub 'bye bye
  48.     end if
  49.  
  50.     s=sCOL_NR(ElementSubIndex-1)
  51.     Call IniWriteValue(sFile,sSect,sVal_Back,s)
  52.  
  53.  else 'Reset Color
  54.     's=RegReadValue(sp)
  55.     'if not IsEmpty(s) then
  56.     '   Call RegDeleteValue(sp)
  57.     'end if       
  58.     'Call MsgInformatioN("The default color has been restored")
  59.  end if
  60.  
  61.  
  62.  Call Logoff()
  63. End Sub
  64.  
  65. Sub Plugin_Terminate 
  66. End Sub
  67.  
  68.  
  69.  
  70.